package br.com.dbclass.db;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.List;

import br.com.dbclass.entidade.Atributo;

public abstract class  DataBase {
	
	// Constantes
	public final static String DATABASE_MYSQL = "mysql";
	public final static String DATABASE_SQLSERVER = "sqlserver";
	public final static String DATABASE_ORACLE = "oracle";
	public final static String DATABASE_FIREBIRD = "firebird";
	
	public final static String DRIVER_MYSQL = "com.mysql.jdbc.Driver";
	public final static String DRIVER_SQLSERVER = "com.microsoft.jdbc.SqlServer.SQLServerDriver";
	public final static String DRIVER_ORACLE = "oracle.jdbc.driver.OracleDriver";
	public final static String DRIVER_FIREBIRD = "firebird";

	protected Connection aConnection = null;
	protected ResultSet aResultSet = null;
	protected Statement aStatement = null;

	public abstract Connection conectar();
	public abstract void desconectar();
	public abstract List<Atributo> carregarAtributos();
	
}
